import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "@/store/index";
import "./assets/css/reset.scss";
import "./assets/css/common.css";
import "./font/iconfont.css";
import "./plugins/vant";
import "./tools/fit";
import "./tools/FastClick";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import filters from "./filters";
import vuescroll from "vuescroll";

Vue.use(vuescroll);
Vue.use(filters);
Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.config.devtools = false;
Vue.prototype.$confirm = ElementUI.MessageBox.confirm;
router.beforeEach((to, from, next) => {
  document.title = to.meta.title;
  next();
});

export default new Vue({
  el: "#app",
  router,
  store,
  render: h => h(App)
});
